package com.app.ui.fragment

import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import androidx.annotation.RequiresApi
import androidx.fragment.app.Fragment
import com.app.R

class CovidFragment : Fragment() {

    lateinit var webView: WebView
    lateinit var intent:Intent


    @RequiresApi(Build.VERSION_CODES.O)
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view = inflater.inflate(R.layout.fragment_covid, container, false)

        webView = view.findViewById<WebView>(R.id.video_web_view)
        webView.loadUrl("https://news.qq.com/zt2020/page/feiyan.htm#/")
        return view
    }
}

